package org.example.Service.Impl;

import org.example.Service.BookService;
import org.example.domain.Book;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService {


    @Override
    public String save(org.example.domain.Book book) {
        System.out.println("保存图书成功");
        return"{'module','bookSave'}";

    }

    @Override
    public String delete(Integer id) {
        System.out.println("删除图书成功");
        return"{'module','bookDelete'}";
    }

    @Override
    public String update(Book book) {
        System.out.println("更新图书成功");
        return"{'module','bookUpdate'}";
    }

    @Override
    public String getById(Integer id) {
        System.out.println("查询单个图书成功");
        return"{'module','bookSelectOne'}";
    }

    @Override
    public String getAll() {
        System.out.println("查询全部图书成功");
        return"{'module','bookSelectAll'}";
    }
}
